package modelPackage;

import java.awt.Point;

public class Point3D {

	public double x;
	public double y;
	public double z;
	
	/*
	 * Constructors.  There's some of those.
	 * */
	
	public Point3D(double x, double y, double z) {
		this.x = x;
		this.y = y;
		this.z = z;
	}
	
	public Point3D(Point p, double z) {
		this.x = (double) p.x;
		this.y = (double) p.y;
		this.z = z;
	}
	
	public Point3D(Point p, int z) {
		this.x = (double) p.x;
		this.y = (double) p.y;
		this.z = (double) z;
	}
	
	public Point3D(int x, int y, int z) {
		this.x = (double) x;
		this.y = (double) y;
		this.z = (double) z;
	}
	
	public Point3D(Point3D p) {
		this.x = p.x;
		this.y = p.y;
		this.z = p.z;
	}
	
	
	/*
	 * Mutators.  There's some of those too.
	 * */
	
	public void setPosition(Point p, double z) {
		this.x = (double) p.x;
		this.y = (double) p.y;
		this.z = z;
	}
	
	public void setPosition(Point p, int z) {
		this.x = (double) p.x;
		this.y = (double) p.y;
		this.z = (double) z;
	}
	
	public void setPosition(double x, double y, double z) {
		this.x = x;
		this.y = y;
		this.z = z;
	}
	
	public void setPosition(int x, int y, int z) {
		this.x = (double) x;
		this.y = (double) y;
		this.z = (double) z;
	}
	
	public void setPosition(Point3D p) {
		this.x = p.x;
		this.y = p.y;
		this.z = p.z;
	}
}
